package com.itcast.Extands;

public abstract class Animal {
    private int age;
    private int numOflege;

    public Animal() {
    }

    public Animal(int age, int numOflege) {
        this.age = age;
        this.numOflege = numOflege;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getNumOflege() {
        return numOflege;
    }

    public void setNumOflege(int numOflege) {
        this.numOflege = numOflege;
    }

    public abstract void eat();
}
